<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/3
 * Time: 15:44
 */

namespace App\Services;


use App\Article;
use App\Lib\Util\QueryPager;


class ArticleService extends Service
{
    public function getList(Array $input)
    {
        $articleModel  = new Article();

        $query = $articleModel;

        $pager = new QueryPager($query);

        $pager->setRefectionMethodField('articleCateGet');

        return $this->success('文章列表', $pager->doPaginate($input, 'id'));
    }
}